/**
 * 
 */
package org.simpledao.service;

import java.util.List;
import java.util.Map;

import org.mytool.common.db.DbWhere;

/**
 * @author wangchen
 *
 */
public interface SimpledaoI {
	
	public int insert(Map data);
	public int insert(Object data);

	public int insertSelective(Map data);
	public int insertSelective(Object data);

	public int updateByPrimaryKey(Map data);
	public int updateByPrimaryKey(Object data);
	
	public int updateByParameter(Map data,DbWhere param);
	public int updateByParameter(Object data,DbWhere param);

	public int updateByPrimaryKeySelective(Map param);
	public int updateByPrimaryKeySelective(Object param);
	
	public int updateByParameterSelective(Map data,DbWhere param);
	public int updateByParameterSelective(Object data,DbWhere param);
	
	public int deleteByPrimaryKey(String id);
	
	public int deleteByPrimaryKeys(String... id);
	
	public int deleteByParameter(DbWhere parameter);
	
	public int countByParameter(DbWhere parameter);
	
	public Map<String,Object> selectByPrimaryKey(String id);
	
	public <T> T selectByPrimaryKey(String id,Class<T> cla);
	
	public  List<Map<String,Object>> selectByParameter(DbWhere parameter);
	
	public <T> List<T> selectByParameter(DbWhere parameter,Class<T> cla);
	
}
